package chapter2;

public class 数组 {
    public static void main(String[] args) {
        String[] names = new String[3];
        names[0] = "ZYH";
        names[0] = "qxy";
        User1[] user1 = new User1[3];
        System.out.println(names[0]);
        for (int i = 0; i < user1.length  ; i++) {
            user1[i] = new User1();
        }
        for (int i = 0; i < 3; i++) {
            System.out.println(user1[i]);
        }
    }
}
class User1 {
    public void test() {
        System.out.println("test...");
    }
}